package com.lizhe.exception.service;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.lizhe.exception.mapper.ArticleMapper;
import com.lizhe.exception.model.Article;

import java.util.List;

/**
 * @author lz
 * @create 2021-10-28
 */
@Service
public class ArticleService {

    @Resource
    private ArticleMapper articleMapper;


    public int deleteByPrimaryKey(Integer id) {
        return articleMapper.deleteByPrimaryKey(id);
    }


    public int insert(Article record) {
        return articleMapper.insert(record);
    }


    public int insertSelective(Article record) {
        return articleMapper.insertSelective(record);
    }


    public Article selectByPrimaryKey(Integer id) {
        return articleMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(Article record) {
        return articleMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(Article record) {
        return articleMapper.updateByPrimaryKey(record);
    }

    public List<Article> findByAll(Article article) {
        return articleMapper.findByAll(article);
    }
}
